package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Certificate_managementRouter struct{}

// InitCertificate_managementRouter 初始化 证书管理 路由信息
func (s *Certificate_managementRouter) InitCertificate_managementRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	certificate_managementRouter := Router.Group("certificate_management").Use(middleware.OperationRecord())
	certificate_managementRouterWithoutRecord := Router.Group("certificate_management")
	certificate_managementRouterWithoutAuth := PublicRouter.Group("certificate_management")
	{
		certificate_managementRouter.POST("createCertificate_management", certificate_managementApi.CreateCertificate_management)             // 新建证书管理
		certificate_managementRouter.DELETE("deleteCertificate_management", certificate_managementApi.DeleteCertificate_management)           // 删除证书管理
		certificate_managementRouter.DELETE("deleteCertificate_managementByIds", certificate_managementApi.DeleteCertificate_managementByIds) // 批量删除证书管理
		certificate_managementRouter.PUT("updateCertificate_management", certificate_managementApi.UpdateCertificate_management)              // 更新证书管理
	}
	{
		certificate_managementRouterWithoutRecord.GET("findCertificate_management", certificate_managementApi.FindCertificate_management)       // 根据ID获取证书管理
		certificate_managementRouterWithoutRecord.GET("getCertificate_managementList", certificate_managementApi.GetCertificate_managementList) // 获取证书管理列表
	}
	{
		certificate_managementRouterWithoutAuth.GET("getCertificate_managementPublic", certificate_managementApi.GetCertificate_managementPublic) // 证书管理开放接口
	}
}
